s=input("请输入含有空格的字符串:")

for substring in s.split(' '):
    print(substring)
